Skip to content

Commit

Permalink
Moved to a separate PR galaxyproject#16301
Browse files Browse the repository at this point in the history
  • Loading branch information
mahendrapaipuri committed Jun 23, 2023
1 parent abc6b43 commit 8271850
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</tr>
<tr>
<td>File contents</td>
<td id="file-contents"><a :href="prefixedUrl(dataset.download_url)">contents</a></td>
<td id="file-contents"><a :href="dataset.download_url">contents</a></td>
</tr>
<tr v-if="dataset.id">
<td>History Content API ID</td>
Expand Down Expand Up @@ -77,7 +77,7 @@
</template>

<script>
import Utils from "utils/utils";
import { bytesToString } from "utils/utils";
import UtcDate from "components/UtcDate";
import DecodedId from "../DecodedId";
import { DatasetProvider } from "components/providers";
Expand All @@ -100,10 +100,7 @@ export default {
},
methods: {
bytesToString(raw_size) {
return Utils.bytesToString(raw_size, false);
},
prefixedUrl(url) {
return window.options?.root.replace(/\/$/, "") + url;
return bytesToString(raw_size, false);
},
},
};
Expand Down

0 comments on commit 8271850

Please sign in to comment.