Refactor: rename alert to dialog

This commit is contained in:
syuilo 2018-12-02 15:28:52 +09:00
parent bb14895fd8
commit c9ac9923df
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
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,