forked from oliverschwendener/ueli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the option for setting a default target currency. (oliverschwen…
…dener#872) You can now simply write "6 usd" and have it convert into a default currency of your choosing (the default is EUR).
- Loading branch information
1 parent
34c491b
commit 3520748
Showing
3 changed files
with
84 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import { CurrencyCode } from "../../main/plugins/currency-converter-plugin/currency-code"; | ||
|
||
export interface CurrencyConverterOptions { | ||
precision: number; | ||
defaultTarget: CurrencyCode; | ||
isEnabled: boolean; | ||
} | ||
|
||
export const defaultCurrencyConverterOptions: CurrencyConverterOptions = { | ||
isEnabled: false, | ||
precision: 2, | ||
defaultTarget: CurrencyCode.EUR | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters