Skip to content

Commit

Permalink
Move file component into fs directory
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace committed May 28, 2020
1 parent 91bf699 commit 6b0667f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions ui/app/templates/components/fs/browser.hbs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<section class="section is-closer {{if isFile "full-width-section"}}">
{{#if model.isRunning}}
{{#if isFile}}
{{#task-file allocation=allocation task=task file=path stat=stat class="fs-explorer"}}
{{#fs/file allocation=allocation task=task file=path stat=stat class="fs-explorer"}}
{{fs/breadcrumbs allocation=allocation task=task path=path}}
{{/task-file}}
{{/fs/file}}
{{else}}
<div class="fs-explorer boxed-section">
<div class="boxed-section-head">
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { setupRenderingTest } from 'ember-qunit';
import { find, render, settled } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
import Pretender from 'pretender';
import { logEncode } from '../../mirage/data/logs';
import { logEncode } from '../../../mirage/data/logs';

const { assign } = Object;
const HOST = '1.1.1.1:1111';

module('Integration | Component | task file', function(hooks) {
module('Integration | Component | fs/file', function(hooks) {
setupRenderingTest(hooks);

hooks.beforeEach(function() {
Expand All @@ -25,7 +25,7 @@ module('Integration | Component | task file', function(hooks) {
});

const commonTemplate = hbs`
{{task-file allocation=allocation task=task file=file stat=stat}}
{{fs/file allocation=allocation task=task file=file stat=stat}}
`;

const fileStat = (type, size = 0) => ({
Expand Down Expand Up @@ -184,9 +184,9 @@ module('Integration | Component | task file', function(hooks) {
this.setProperties(props);

await render(hbs`
{{#task-file allocation=allocation task=task file=file stat=stat}}
{{#fs/file allocation=allocation task=task file=file stat=stat}}
<div data-test-yield-spy>Yielded content</div>
{{/task-file}}
{{/fs/file}}
`);

assert.ok(
Expand Down

0 comments on commit 6b0667f

Please sign in to comment.