mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-28 06:48:32 +09:00
Use internal alert function
This commit is contained in:
parent
6157d8331b
commit
3d2b982a94
@ -421,7 +421,10 @@ export default Vue.extend({
|
|||||||
|
|
||||||
renameFolder() {
|
renameFolder() {
|
||||||
if (this.folder == null) {
|
if (this.folder == null) {
|
||||||
alert(this.$t('root-rename-alert'));
|
this.$root.dialog({
|
||||||
|
type: 'error',
|
||||||
|
text: this.$t('root-rename-alert')
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const name = window.prompt(this.$t('folder-name'), this.folder.name);
|
const name = window.prompt(this.$t('folder-name'), this.folder.name);
|
||||||
@ -436,7 +439,10 @@ export default Vue.extend({
|
|||||||
|
|
||||||
moveFolder() {
|
moveFolder() {
|
||||||
if (this.folder == null) {
|
if (this.folder == null) {
|
||||||
alert(this.$t('root-move-alert'));
|
this.$root.dialog({
|
||||||
|
type: 'error',
|
||||||
|
text: this.$t('root-move-alert')
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.$chooseDriveFolder().then(folder => {
|
this.$chooseDriveFolder().then(folder => {
|
||||||
@ -456,7 +462,10 @@ export default Vue.extend({
|
|||||||
url: url,
|
url: url,
|
||||||
folderId: this.folder ? this.folder.id : undefined
|
folderId: this.folder ? this.folder.id : undefined
|
||||||
});
|
});
|
||||||
alert(this.$t('uploading'));
|
this.$root.dialog({
|
||||||
|
type: 'info',
|
||||||
|
text: this.$t('uploading')
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onChangeLocalFile() {
|
onChangeLocalFile() {
|
||||||
@ -467,7 +476,10 @@ export default Vue.extend({
|
|||||||
|
|
||||||
deleteFolder() {
|
deleteFolder() {
|
||||||
if (this.folder == null) {
|
if (this.folder == null) {
|
||||||
alert(this.$t('root-delete-alert'));
|
this.$root.dialog({
|
||||||
|
type: 'error',
|
||||||
|
text: this.$t('root-delete-alert')
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.$root.api('drive/folders/delete', {
|
this.$root.api('drive/folders/delete', {
|
||||||
|
Loading…
Reference in New Issue
Block a user