Ver código fonte

Merge branch '82-download-export-nomenclature' into 'master'

#82 - Remove export button and handler script.

Closes #82

See merge request medlabboulder/communityrule!11
Nathan Schneider 2 anos atrás
pai
commit
3ff73cae03
2 arquivos alterados com 0 adições e 8 exclusões
  1. 0 1
      _includes/vue-rule-script.html
  2. 0 7
      assets/js/vue.rules.js

+ 0 - 1
_includes/vue-rule-script.html

@@ -232,7 +232,6 @@
         <div class="btn-group" v-if="!legacy && !view">
             <vue-button class="primary is-large" @click="handleClickPublish" :icon="icons.publish" :loading="publishing">Publish</vue-button>
             <vue-button class="is-large" @click="handleClickDownload" :icon="icons.download">Download</vue-button>
-            <vue-button class="is-large" @click="handleClickExport" :icon="icons.export">Export</vue-button>
             <vue-button class="is-large" @click="handleClickImport" :icon="icons.upload">Import <div class="btn-cover">coming soon!</div></vue-button>
         </div>
         <div class="btn-group" v-if="view && !legacy">

+ 0 - 7
assets/js/vue.rules.js

@@ -712,13 +712,6 @@ const app = Vue.createApp({
 
       this.saveFile(`${this.ruleExport.ruleID}.md`, output, 'text/markdown');
     },
-    /**
-     * Handles the click event for downloading the rule as a JSON file
-     */
-    handleClickExport() {
-      const output = this.json;
-      this.saveFile(`${this.ruleExport.ruleID}.json`, output, 'application/json');
-    },
     /**
      * IE10+ Firefox, and Chrome method for saving a file
      * https://stackoverflow.com/a/33542499