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

@ -22,7 +22,7 @@ export default async function($root: any, force = false, silent = false) {
}
/*if (!silent) {
$root.alert({
$root.dialog({
title: $root.$t('@.update-available-title'),
text: $root.$t('@.update-available', { newer, current })
});

View File

@ -4,7 +4,7 @@ export default ($root: any) => {
require('fuckadblock');
function adBlockDetected() {
$root.alert({
$root.dialog({
title: $root.$t('@.adblock.detected'),
text: $root.$t('@.adblock.warning')
});

View File

@ -142,7 +142,7 @@ export default (opts: Opts = {}) => ({
this.$root.api('notes/favorites/create', {
noteId: this.appearNote.id
}).then(() => {
this.$root.alert({
this.$root.dialog({
type: 'success',
splash: true
});