Skip to content

Commit

Permalink
Toast added to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
elrumo committed Nov 22, 2020
1 parent 6098440 commit 0b89f3d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion website/macos-big-sur-icons/src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<div>
<Header/>

<coral-toast id="iconUpdated" variant="success">
All icons have been updated
</coral-toast>

<!-- Sign in well -->
<div id="signIn-wrapper" class="coral-Well m-t-50">
<div class="m-b-20">
Expand Down Expand Up @@ -255,11 +259,12 @@ export default {
},
editDoc(icon, e, field, isMultipleIcons){
let parent = this
let newName = e.target.value
console.log(newName);
if(isMultipleIcons){
let listLen = icon.icons.length
let listLen = Object.keys(icon.icons).length
let count = 0
for(let doc in icon.icons){
Expand All @@ -269,6 +274,7 @@ export default {
count++
if (count == listLen) {
parent.showToast({id:"iconUpdated"})
console.log("All documents successfully updated!");
}
console.log("Document successfully updated!");
}).catch(function(error) {
Expand Down

1 comment on commit 0b89f3d

@vercel
Copy link

@vercel vercel bot commented on 0b89f3d Nov 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.