@@ -128,10 +128,8 @@ import { storeToRefs } from 'pinia';
128
128
import pluralize from ' pluralize' ;
129
129
import AppAutomationForm from ' @/modules/automation/components/automation-form.vue' ;
130
130
import AppAutomationListTable from ' @/modules/automation/components/list/automation-list-table.vue' ;
131
- import { mapGetters } from ' @/shared/vuex/vuex.helpers' ;
132
131
import AppAutomationExecutions from ' @/modules/automation/components/automation-executions.vue' ;
133
132
import { FeatureFlag } from ' @/utils/featureFlag' ;
134
- import { getWorkflowMax , showWorkflowLimitDialog } from ' @/modules/automation/automation-limit' ;
135
133
136
134
import { useStore } from ' vuex' ;
137
135
import config from ' @/config' ;
@@ -158,40 +156,15 @@ const {
158
156
} = storeToRefs (automationStore);
159
157
const { getAutomations , changeAutomationFilter } = automationStore;
160
158
161
- const { currentTenant } = mapGetters (' auth' );
162
-
163
159
const store = useStore ();
164
160
const fetchIntegrations = () => store .dispatch (' integration/doFetch' );
165
161
166
- /**
167
- * Check if tenant has feature flag enabled
168
- */
169
- const canAddAutomation = () => {
170
- const isFeatureEnabled = FeatureFlag .isFlagEnabled (
171
- FeatureFlag .flags .automations ,
172
- );
173
-
174
- if (! isFeatureEnabled) {
175
- const planWorkflowCountMax = getWorkflowMax (
176
- currentTenant .value .plan ,
177
- );
178
-
179
- showWorkflowLimitDialog ({ planWorkflowCountMax });
180
- }
181
-
182
- return isFeatureEnabled;
183
- };
184
-
185
162
// Executions drawer
186
163
const createAutomation = (type ) => {
187
164
if (! automationTypes[type].canCreate (store)) {
188
165
return ;
189
166
}
190
167
191
- if (! canAddAutomation ()) {
192
- return ;
193
- }
194
-
195
168
openAutomationForm .value = true ;
196
169
editAutomation .value = null ;
197
170
automationFormType .value = type;
0 commit comments