Versie 0.3.2
This commit is contained in:
1 parent
e77d8fd373
commit
1cf6eeed29
16 files changed
+551
-44
No files matched your search
+3
-3
@@ -1,9 +1,9 @@
|
||||
// Generated, do not edit. sha256:4bf6f8ef0a0bf339d290a677844034b6b894f341f060833980b2dc5ccb489b09
|
||||
// Generated, do not edit. sha256:d2bc926ea0bee8d8465cb325428dc8ec0f61a809df8e09696d2ce30fb50111c2
|
||||
import { esc } from './escape.js';
|
||||
import { SHIELD } from './icons.js';
|
||||
import { t } from '../i18n/index.js';
|
||||
import { TARGETS, targetHash } from '../../shared/config.js';
|
||||
import { limitFor } from '../license.js';
|
||||
import { limitFor, counterText } from '../license.js';
|
||||
|
||||
export function lockIcon(title = t('license.lockedTitle')) {
|
||||
return `<span class="lock-icon" title="${esc(title)}" aria-label="${esc(title)}">${SHIELD}</span>`;
|
||||
@@ -31,7 +31,7 @@ export function capacityCfg(kind, used) {
|
||||
const max = limitFor(kind);
|
||||
if (max === null) return {};
|
||||
return {
|
||||
toolbarNote: () => t('license.counter', { n: used(), max }),
|
||||
toolbarNote: () => counterText(kind, used()),
|
||||
createHidden: () => used() >= max,
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user