Skip to content

Commit

Permalink
Error message added
Browse files Browse the repository at this point in the history
  • Loading branch information
elrumo committed May 28, 2021
1 parent 37a11f2 commit 7764c01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 8 additions & 0 deletions website/macos-big-sur-icons/src/components/EditIconDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ export default {
}).catch((error) => {
parent.isLoading = false
console.log(error);
document.getElementById("editIconDialog").hide()
parent.showToast({
id: "toastMessage",
message: "Something went wrong, please try again.",
variant: "error"
})
})
},
Expand Down
6 changes: 2 additions & 4 deletions website/macos-big-sur-icons/src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,8 @@ import dotenv from 'dotenv'; // Used to access env varaibles
dotenv.config()
// TODO: remove credentials
const VUE_APP_PARSE_APP_ID = "macOSicons"
const VUE_APP_PARSE_JAVASCRIPT_KEY = "macOSicons"
// const VUE_APP_PARSE_APP_ID = process.env.VUE_APP_PARSE_APP_ID
// const VUE_APP_PARSE_JAVASCRIPT_KEY = process.env.VUE_APP_PARSE_JAVASCRIPT_KEY
const VUE_APP_PARSE_APP_ID = process.env.VUE_APP_PARSE_APP_ID
const VUE_APP_PARSE_JAVASCRIPT_KEY = process.env.VUE_APP_PARSE_JAVASCRIPT_KEY
Parse.initialize(VUE_APP_PARSE_APP_ID, VUE_APP_PARSE_JAVASCRIPT_KEY)
Parse.serverURL = 'https://media.macosicons.com/parse'
Expand Down

1 comment on commit 7764c01

@vercel
Copy link

@vercel vercel bot commented on 7764c01 May 28, 2021

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.