Refactor: rename alert to dialog

This commit is contained in:
syuilo
2018-12-02 15:28:52 +09:00
parent bb14895fd8
commit c9ac9923df
27 changed files with 66 additions and 66 deletions

View File

@@ -23,7 +23,7 @@ export default Vue.extend({
},
methods: {
fn() {
this.$root.alert({
this.$root.dialog({
type: 'warning',
text: this.$t('read-all'),
showCancelButton: true

View File

@@ -402,12 +402,12 @@ export default Vue.extend({
this.checkingForUpdate = false;
this.latestVersion = newer;
if (newer == null) {
this.$root.alert({
this.$root.dialog({
title: this.$t('no-updates'),
text: this.$t('no-updates-desc')
});
} else {
this.$root.alert({
this.$root.dialog({
title: this.$t('update-available'),
text: this.$t('update-available-desc')
});

View File

@@ -120,7 +120,7 @@ export default Vue.extend({
text: this.$t('push-to-list'),
action: async () => {
const lists = await this.$root.api('users/lists/list');
const listId = await this.$root.alert({
const listId = await this.$root.dialog({
type: null,
title: this.$t('select-list'),
select: {
@@ -135,7 +135,7 @@ export default Vue.extend({
listId: listId,
userId: this.user.id
});
this.$root.alert({
this.$root.dialog({
type: 'success',
text: this.$t('list-pushed', {
user: this.user.name,