|
|
@@ -222,7 +222,7 @@
|
|
|
<q-btn color="red"
|
|
|
outline
|
|
|
:loading="deleteAllLoading"
|
|
|
- @click="deleteAllSubscriptions">
|
|
|
+ @click="confirmRemoveAllDialog = true">
|
|
|
حذف همه دنبال کنندگان
|
|
|
</q-btn>
|
|
|
</div>
|
|
|
@@ -296,6 +296,27 @@
|
|
|
</q-card-actions>
|
|
|
</q-card>
|
|
|
</q-dialog>
|
|
|
+ <q-dialog v-model="confirmRemoveAllDialog"
|
|
|
+ persistent>
|
|
|
+ <q-card>
|
|
|
+ <q-card-section class="row items-center">
|
|
|
+ <q-icon name="warning"
|
|
|
+ color="primary"
|
|
|
+ size="md" />
|
|
|
+ <span class="q-ml-sm">{{ confirmRemoveAllMessage }}</span>
|
|
|
+ </q-card-section>
|
|
|
+ <q-card-actions align="right">
|
|
|
+ <q-btn flat
|
|
|
+ label="انصراف"
|
|
|
+ color="primary"
|
|
|
+ @click="confirmRemoveAllDialog = false" />
|
|
|
+ <q-btn flat
|
|
|
+ label="تایید"
|
|
|
+ color="primary"
|
|
|
+ @click="deleteAllSubscriptions" />
|
|
|
+ </q-card-actions>
|
|
|
+ </q-card>
|
|
|
+ </q-dialog>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
@@ -330,6 +351,7 @@ export default {
|
|
|
exportReportLoading: false,
|
|
|
deleteAllLoading: false,
|
|
|
showAlertDialog: false,
|
|
|
+ confirmRemoveAllDialog: false,
|
|
|
alertMessageText: '',
|
|
|
sendingAlertConfirmation: false,
|
|
|
sendingAlertMessage: false,
|
|
|
@@ -602,6 +624,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ confirmRemoveAllMessage () {
|
|
|
+ return 'آیا از حذف همه دنبال کنندگان اطمینان دارید؟'
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted () {
|
|
|
// this.getCategories()
|
|
|
this.setActionBtn()
|
|
|
@@ -622,9 +649,11 @@ export default {
|
|
|
position: 'center'
|
|
|
})
|
|
|
this.deleteAllLoading = false
|
|
|
+ this.confirmRemoveAllDialog = false
|
|
|
})
|
|
|
.catch((e) => {
|
|
|
this.deleteAllLoading = false
|
|
|
+ this.confirmRemoveAllDialog = false
|
|
|
})
|
|
|
},
|
|
|
getSubscriptionsListExcel () {
|