Skip to content

Commit

Permalink
build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
deepansh96 committed May 9, 2024
1 parent b76c806 commit 602fcb2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
9 changes: 2 additions & 7 deletions src/components/App/ConfigureWebhookWindow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export default {
* Get style classes for how a tab looks on the sidebar region
* @param {String} tabName - The name of the tab for which the style classes are required
*/
getTabStyleClasses(tabCodeName) {
getTabStyleClasses() {
return "text-primary leading-relaxed pl-2 font-medium w-full capitalize whitespace-nowrap lg:text-base md:text-sm bp-500:text-xs text-xl text-left py-1"
},
clickTab(tabCodeName) {
Expand All @@ -419,11 +419,6 @@ export default {
},
computed: {
...mapGetters("generic", ["isMobileScreen"]),
saveButtonTooltip() {
return this.areThereUnsavedChanges
? this.$t("tooltip.settings.buttons.save.hasUnsavedChanges")
: this.$t("tooltip.settings.buttons.save.noUnsavedChanges");
},
areThereUnsavedChanges() {
// check if url is valid and the new url is different from the old url
if (!this.isUrlValid) return false;
Expand All @@ -443,7 +438,7 @@ export default {
saveButtonTooltip() {
return this.areThereUnsavedChanges
? this.$t("tooltip.settings.buttons.apply_webhook_configuration")
: this.$t("tooltip.settings.buttons.discard_webhook_configuration");
: this.$t("tooltip.settings.buttons.save.noUnsavedChanges");
},
isUrlValidationEnabled() {
return this.url.trim() == "" ? false : true;
Expand Down
10 changes: 8 additions & 2 deletions src/components/Editor/CodeHighlighter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@ export default {
},
beforeUpdate() {
if (typeof this.$slots.default[0] === "string") {
const newText = this.$slots.default[0].replace(/^[\r\n\s]*|[\r\n\s]*$/g, "");
const defaultSlot = this.$scopedSlots.default && this.$scopedSlots.default();
if (defaultSlot && typeof defaultSlot[0] === "string") {
const newText = defaultSlot[0].replace(/^[\r\n\s]*|[\r\n\s]*$/g, "");
this.$el.querySelector("code").textContent = newText;
Prism.highlightAllUnder(this.$refs.codeBlock);
}
// if (typeof this.$slots.default[0] === "string") {
// const newText = this.$slots.default[0].replace(/^[\r\n\s]*|[\r\n\s]*$/g, "");
// this.$el.querySelector("code").textContent = newText;
// Prism.highlightAllUnder(this.$refs.codeBlock);
// }
},
};
</script>
2 changes: 1 addition & 1 deletion src/services/Config/GlobalDefaultSettings.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** default settings */
let skipEnabled = true;
let firstTimeLanguagePickerPopup = true;
let customWebhookEnabled = false;
// let customWebhookEnabled = false;

/**
* This object contains a mapping of a setting and its metadata.
Expand Down

0 comments on commit 602fcb2

Please sign in to comment.