Skip to content

Commit

Permalink
fix: Name improvement change
Browse files Browse the repository at this point in the history
namings fixed for backward compatibility
  • Loading branch information
pnrgenc committed Jan 10, 2025
1 parent 31bc58f commit 25b46a2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,18 @@
type: Boolean
},

isToggleActive: {
type: Boolean,
required: false,
default: false
},

isToggleDisabled: {
default: false,
type: Boolean
},

options: {
topDropdownOptions: {
type: Array,
default: () => []
},
Expand All @@ -82,18 +88,14 @@
},

toggle: {
default: false,
type: Boolean
type: Boolean,
required: false,
default: false
},

toggleTooltip: {
default: null,
type: String
},

toggleValue: {
default: false,
type: Boolean
type: String,
required: false
},

value: {
Expand Down Expand Up @@ -151,7 +153,7 @@
},

isOptionsButtonVisible() {
return !!this.options.length;
return !!this.topDropdownOptions.length;
},

localValue: {
Expand All @@ -162,15 +164,6 @@
this.$emit('input', value);
}
},

toggleLocalValue: {
get() {
return this.toggleValue;
},
set(value) {
this.$emit('switch-toggle', value);
}
}
},

methods: {
Expand Down Expand Up @@ -200,7 +193,7 @@

toggleInputReadonlyState() {
this.isReadonlyInput = !this.isReadonlyInput;
}
},
}
}));

Expand Down Expand Up @@ -623,4 +616,4 @@
</div>
`
}));
}(window.countlyVue = window.countlyVue || {}));
}(window.countlyVue = window.countlyVue || {}));
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
:class="closeButtonIcon"
/>
</div>
<el-switch
v-if="toggle"
v-tooltip.right="toggleTooltip"
v-model="toggleLocalValue"
class="cly-vue-content-builder-header__toggle"
:disabled="isToggleDisabled"
/>
<div v-if="toggle" class="cly-vue-content-builder__layout-header__toggle bu-mr-4">
<el-switch
v-tooltip.right="toggleTooltip"
:value="isToggleActive"
:disabled="isToggleDisabled"
@change="$emit('switch-toggle', $event)"
/>
</div>
<div class="cly-vue-content-builder-header__info">
<div
v-tooltip="inputTooltip"
Expand Down Expand Up @@ -80,7 +81,7 @@
@command="onCommand"
>
<el-dropdown-item
v-for="(option, idx) in options"
v-for="(option, idx) in topDropdownOptions"
:key="`cly-vue-content-builder-header-option-${idx}`"
class="cly-vue-content-builder-header__option"
:command="option.value"
Expand All @@ -92,4 +93,4 @@
</el-dropdown-item>
</cly-more-options>
</div>
</div>
</div>

0 comments on commit 25b46a2

Please sign in to comment.