forked from mirrors/misskey
Refactor: rename alert to dialog
This commit is contained in:
@@ -8,7 +8,7 @@ export default ($root: any) => {
|
||||
|
||||
const regex = RegExp('\.(jpg|jpeg|png|gif|webp|bmp|tiff)$');
|
||||
if (!regex.test(file.name) ) {
|
||||
$root.alert({
|
||||
$root.dialog({
|
||||
title: '%fa:info-circle% %i18n:desktop.invalid-filetype%',
|
||||
text: null
|
||||
});
|
||||
@@ -87,7 +87,7 @@ export default ($root: any) => {
|
||||
value: i.avatarUrl
|
||||
});
|
||||
|
||||
$root.alert({
|
||||
$root.dialog({
|
||||
title: '%fa:info-circle% %i18n:desktop.avatar-updated%',
|
||||
text: null
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user