summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/desktop/api')
-rw-r--r--src/client/app/desktop/api/update-avatar.ts14
-rw-r--r--src/client/app/desktop/api/update-banner.ts12
2 files changed, 7 insertions, 19 deletions
diff --git a/src/client/app/desktop/api/update-avatar.ts b/src/client/app/desktop/api/update-avatar.ts
index ae8b723ea6..e0215aa34f 100644
--- a/src/client/app/desktop/api/update-avatar.ts
+++ b/src/client/app/desktop/api/update-avatar.ts
@@ -8,12 +8,9 @@ export default ($root: any) => {
const regex = RegExp('\.(jpg|jpeg|png|gif|webp|bmp|tiff)$');
if (!regex.test(file.name) ) {
- $root.$dialog({
+ $root.alert({
title: '%fa:info-circle% %i18n:desktop.invalid-filetype%',
- text: null,
- actions: [{
- text: '%i18n:common.got-it%'
- }]
+ text: null
});
return reject('invalid-filetype');
}
@@ -90,12 +87,9 @@ export default ($root: any) => {
value: i.avatarUrl
});
- $root.$dialog({
+ $root.alert({
title: '%fa:info-circle% %i18n:desktop.avatar-updated%',
- text: null,
- actions: [{
- text: '%i18n:common.got-it%'
- }]
+ text: null
});
return i;
diff --git a/src/client/app/desktop/api/update-banner.ts b/src/client/app/desktop/api/update-banner.ts
index c338d4e95c..36582684ec 100644
--- a/src/client/app/desktop/api/update-banner.ts
+++ b/src/client/app/desktop/api/update-banner.ts
@@ -10,10 +10,7 @@ export default ($root: any) => {
if (!regex.test(file.name) ) {
$root.dialog({
title: '%fa:info-circle% %i18n:desktop.invalid-filetype%',
- text: null,
- actions: [{
- text: '%i18n:common.got-it%'
- }]
+ text: null
});
return reject('invalid-filetype');
}
@@ -90,12 +87,9 @@ export default ($root: any) => {
value: i.bannerUrl
});
- $root.$dialog({
+ $root.alert({
title: '%fa:info-circle% %i18n:desktop.banner-updated%',
- text: null,
- actions: [{
- text: '%i18n:common.got-it%'
- }]
+ text: null
});
return i;