refactor: Rewrite the composable to a helper method

This commit is contained in:
Fayaz Ahmed
2024-08-26 14:28:07 +05:30
parent 73fbfd5782
commit 3901abc009
18 changed files with 52 additions and 108 deletions
@@ -3,7 +3,7 @@ import WidgetHead from './WidgetHead.vue';
import WidgetBody from './WidgetBody.vue';
import WidgetFooter from './WidgetFooter.vue';
import InputRadioGroup from 'dashboard/routes/dashboard/settings/inbox/components/InputRadioGroup.vue';
import { useGlobalConfig } from 'shared/composables/useGlobalConfig';
import { useInstallationName } from 'shared/helpers/installationHelper';
import { mapGetters } from 'vuex';
export default {
@@ -56,12 +56,6 @@ export default {
default: '',
},
},
setup() {
const { useInstallationName } = useGlobalConfig();
return {
useInstallationName,
};
},
data() {
return {
widgetScreens: [
@@ -149,6 +143,7 @@ export default {
this.isWidgetVisible = !this.isWidgetVisible;
this.isDefaultScreen = true;
},
useInstallationName,
},
};
</script>