Skip to content

Commit

Permalink
code cleanup following review
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeauchamp committed Apr 22, 2022
1 parent e54b968 commit 3e82ed6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions packages/xo-web/src/common/select-objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,7 @@ export const SelectSr = makeStoreSelect(
const getHosts = createGetObjectsOfType('host')

const getSrsByContainer = createGetObjectsOfType('SR')
.filter((_, { predicate }) => {
console.log(predicate)
return predicate || (allowIsoSr ? isSrWritableOrIso : isSrWritable)
})
.filter((_, { predicate }) => predicate || (allowIsoSr ? isSrWritableOrIso : isSrWritable))
.sort()
.groupBy('$container')

Expand Down
3 changes: 1 addition & 2 deletions packages/xo-web/src/xo-app/disk-import/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const DiskImport = decorate([
initialState: getInitialState,
effects: {
handleDrop: async function (_, files) {
// @todo no setState ?
this.state.loadingDisks = true
const disks = await Promise.all(
map(files, async file => {
Expand Down Expand Up @@ -117,7 +116,7 @@ const DiskImport = decorate([
<Dropzone
onDrop={effects.handleDrop}
message={_('dropDisksFiles')}
accept={sr.content_type === 'iso' ? '.iso' : '.vhd,.vmdk'}
accept={sr.content_type === 'iso' ? '.iso' : ['.vhd', '.vmdk']}
/>
{loadingDisks && <Icon icon='loading' />}
{disks.length > 0 && (
Expand Down

0 comments on commit 3e82ed6

Please sign in to comment.