apply suggestion
This commit is contained in:
@@ -141,7 +141,7 @@ import 'css!./style';
|
||||
|
||||
options = options || {};
|
||||
|
||||
import('text!./imageUploader.template.html').then(({default: template}) => {
|
||||
return import('text!./imageUploader.template.html').then(({default: template}) => {
|
||||
|
||||
currentItemId = options.itemId;
|
||||
currentServerId = options.serverId;
|
||||
|
||||
@@ -168,8 +168,8 @@ import 'flexStyles';
|
||||
|
||||
export function show(itemId, serverId) {
|
||||
loading.show();
|
||||
return new Promise((resolve, reject) => {
|
||||
import('text!./itemMediaInfo.template.html').then(({default: template}) => {
|
||||
return import('text!./itemMediaInfo.template.html').then(({default: template}) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
loadMediaInfo(itemId, serverId, template).then(resolve, reject);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -357,7 +357,7 @@ import 'cardStyle';
|
||||
|
||||
loading.show();
|
||||
|
||||
import('text!./itemidentifier.template.html').then(({default: template}) => {
|
||||
return import('text!./itemidentifier.template.html').then(({default: template}) => {
|
||||
|
||||
const apiClient = getApiClient();
|
||||
|
||||
@@ -446,7 +446,7 @@ import 'cardStyle';
|
||||
currentItem = null;
|
||||
currentItemType = itemType;
|
||||
|
||||
import('text!./itemidentifier.template.html').then(({default: template}) => {
|
||||
return import('text!./itemidentifier.template.html').then(({default: template}) => {
|
||||
|
||||
const dialogOptions = {
|
||||
size: 'small',
|
||||
|
||||
Reference in New Issue
Block a user