Refactor: rename alert to dialog
This commit is contained in:
parent
bb14895fd8
commit
c9ac9923df
27 changed files with 66 additions and 66 deletions
|
|
@ -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 })
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue