Skip to content

Commit

Permalink
Remove "Lite" from Upload Modal (#241)
Browse files Browse the repository at this point in the history
Display lite only if serverMode is false
  • Loading branch information
camdenmoors authored Sep 30, 2020
1 parent c0cf1d5 commit e777f67
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions apps/frontend/src/components/global/upload_tabs/FileReader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<v-col cols="12" align="center">
<div class="d-flex flex-column justify-center">
<span :class="title_class">Heimdall</span>
<span :class="title_class">Lite</span>
<span v-if="!serverMode" :class="title_class">Lite</span>
</div>
</v-col>
</v-row>
Expand Down Expand Up @@ -50,26 +50,23 @@

<script lang="ts">
import Vue from 'vue';
import Component from 'vue-class-component';
import Component, {mixins} from 'vue-class-component';
import {InspecIntakeModule, FileID} from '@/store/report_intake';
import {AppInfoModule} from '@/store/app_info';
import vueFileAgent from 'vue-file-agent';
import ServerMixin from '@/mixins/ServerMixin';
import 'vue-file-agent/dist/vue-file-agent.css';
Vue.use(vueFileAgent);
// We declare the props separately to make props types inferable.
const Props = Vue.extend({
props: {}
});
/**
* File reader component for taking in inspec JSON data.
* Uploads data to the store with unique IDs asynchronously as soon as data is entered.
* Emits "got-files" with a list of the unique_ids of the loaded files.
*/
@Component({})
export default class FileReader extends Props {
export default class FileReader extends mixins(ServerMixin) {
fileRecords = new Array();
loading = false;
Expand Down

0 comments on commit e777f67

Please sign in to comment.