singleActions.js 646 B

12345678910111213141516171819202122232425262728
  1. export default {
  2. created () {
  3. this.singleActions = [
  4. {
  5. label: this.$t('common.text00043'),
  6. permission: 'webapps_syncstatus',
  7. action: (obj) => {
  8. this.onManager('performAction', {
  9. steadyStatus: ['ready'],
  10. id: obj.id,
  11. managerArgs: {
  12. action: 'syncstatus',
  13. },
  14. })
  15. },
  16. meta: (obj) => {
  17. const ret = {
  18. validate: false,
  19. tooltip: null,
  20. }
  21. if (['failed'].includes(obj.status)) return ret
  22. ret.validate = true
  23. return ret
  24. },
  25. },
  26. ]
  27. },
  28. }