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",
"version": "12.119.0-calc.13-rc.2",
"version": "12.119.0-calc.13-rc.3",
"codename": "aqua",
"repository": {
"type": "git",

View file

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

View file

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