This commit is contained in:
syuilo
2018-10-10 20:02:56 +09:00
parent 6db3d6dfb6
commit 8a62748e39
3 changed files with 177 additions and 8 deletions

View File

@ -8,6 +8,7 @@
import Vue from 'vue';
import { url } from '../../../config';
import copyToClipboard from '../../../common/scripts/copy-to-clipboard';
import Ok from './ok.vue';
export default Vue.extend({
props: ['note', 'source', 'compact'],
@ -103,12 +104,7 @@ export default Vue.extend({
(this as any).api('notes/favorites/create', {
noteId: this.note.id
}).then(() => {
this.$swal({
type: 'success',
showConfirmButton: false,
timer: 1250,
customClass: 'swal-icon-only'
});
(this as any).os.new(Ok);
this.destroyDom();
});
},