admin page fixes

This commit is contained in:
ThatOneCalculator 2022-11-14 17:21:48 -08:00
parent 83f318a0dd
commit 6319a93d00
3 changed files with 24 additions and 21 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "calckey", "name": "calckey",
"version": "12.119.0-calc.13-rc.2", "version": "12.119.0-calc.13-rc.3",
"codename": "aqua", "codename": "aqua",
"repository": { "repository": {
"type": "git", "type": "git",

View file

@ -107,6 +107,7 @@ function save() {
const headerActions = $computed(() => [{ const headerActions = $computed(() => [{
asFullButton: true, asFullButton: true,
icon: 'ph-test-tube-bold ph-lg',
text: i18n.ts.testEmail, text: i18n.ts.testEmail,
handler: testEmail, handler: testEmail,
}, { }, {

View file

@ -175,17 +175,17 @@ const menu = (ev: MouseEvent) => {
action: async () => { action: async () => {
os.api('export-custom-emojis', { os.api('export-custom-emojis', {
}) })
.then(() => { .then(() => {
os.alert({ os.alert({
type: 'info', type: 'info',
text: i18n.ts.exportRequested, text: i18n.ts.exportRequested,
});
}).catch((err) => {
os.alert({
type: 'error',
text: err.message,
});
}); });
}).catch((err) => {
os.alert({
type: 'error',
text: err.message,
});
});
}, },
}, { }, {
icon: 'ph-upload-simple-bold ph-lg', icon: 'ph-upload-simple-bold ph-lg',
@ -195,17 +195,17 @@ const menu = (ev: MouseEvent) => {
os.api('admin/emoji/import-zip', { os.api('admin/emoji/import-zip', {
fileId: file.id, fileId: file.id,
}) })
.then(() => { .then(() => {
os.alert({ os.alert({
type: 'info', type: 'info',
text: i18n.ts.importRequested, text: i18n.ts.importRequested,
});
}).catch((err) => {
os.alert({
type: 'error',
text: err.message,
});
}); });
}).catch((err) => {
os.alert({
type: 'error',
text: err.message,
});
});
}, },
}], ev.currentTarget ?? ev.target); }], ev.currentTarget ?? ev.target);
}; };
@ -282,9 +282,11 @@ const headerActions = $computed(() => [{
const headerTabs = $computed(() => [{ const headerTabs = $computed(() => [{
key: 'local', key: 'local',
icon: 'ph-hand-fist-bold ph-lg',
title: i18n.ts.local, title: i18n.ts.local,
}, { }, {
key: 'remote', key: 'remote',
icon: 'ph-planet-bold ph-lg',
title: i18n.ts.remote, title: i18n.ts.remote,
}]); }]);