{{ i18n "pages.xray.rules.add"}}',
          okText: '{{ i18n "pages.xray.rules.add" }}',
          confirm: (rule) => {
            ruleModal.loading();
            if (JSON.stringify(rule).length > 3) {
              this.templateSettings.routing.rules.push(rule);
              this.routingRuleSettings = JSON.stringify(this.templateSettings.routing.rules);
            }
            ruleModal.close();
          },
          isEdit: false
        });
      },
      editRule(index) {
        ruleModal.show({