Skip to content

Commit fa40c3d

Browse files
committed
rename class
1 parent f37b63d commit fa40c3d

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

services/static-webserver/client/source/class/osparc/dashboard/GridButtonPlaceholder.js renamed to services/static-webserver/client/source/class/osparc/dashboard/GridButtonTaskPlaceholder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
************************************************************************ */
1717

18-
qx.Class.define("osparc.dashboard.GridButtonPlaceholder", {
18+
qx.Class.define("osparc.dashboard.GridButtonTaskPlaceholder", {
1919
extend: osparc.dashboard.GridButtonBase,
2020

2121
construct: function() {

services/static-webserver/client/source/class/osparc/dashboard/ListButtonPlaceholder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
************************************************************************ */
1717

18-
qx.Class.define("osparc.dashboard.ListButtonPlaceholder", {
18+
qx.Class.define("osparc.dashboard.ListButtonTaskPlaceholder", {
1919
extend: osparc.dashboard.ListButtonBase,
2020

2121
construct: function() {

services/static-webserver/client/source/class/osparc/dashboard/ResourceBrowserBase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ qx.Class.define("osparc.dashboard.ResourceBrowserBase", {
476476

477477
_addTaskCard: function(task, cardTitle, cardIcon) {
478478
const isGrid = this._resourcesContainer.getMode() === "grid";
479-
const taskCard = isGrid ? new osparc.dashboard.GridButtonPlaceholder() : new osparc.dashboard.ListButtonPlaceholder();
479+
const taskCard = isGrid ? new osparc.dashboard.GridButtonTaskPlaceholder() : new osparc.dashboard.ListButtonTaskPlaceholder();
480480
taskCard.setTask(task);
481481
taskCard.buildLayout(
482482
cardTitle,

services/static-webserver/client/source/class/osparc/dashboard/StudyBrowser.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,16 +1936,9 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
19361936
const text = this.tr("Importing process started and added to the background tasks");
19371937
osparc.FlashMessenger.logAs(text, "INFO");
19381938

1939-
const isGrid = this._resourcesContainer.getMode() === "grid";
1940-
const importingStudyCard = isGrid ? new osparc.dashboard.GridButtonPlaceholder() : new osparc.dashboard.ListButtonPlaceholder();
1941-
importingStudyCard.buildLayout(
1942-
this.tr("Importing Study..."),
1943-
"@FontAwesome5Solid/cloud-upload-alt/" + (isGrid ? "60" : "24"),
1944-
uploadingLabel,
1945-
true
1946-
);
1947-
importingStudyCard.subscribeToFilterGroup("searchBarFilter");
1948-
this._resourcesContainer.addNonResourceCard(importingStudyCard);
1939+
const cardTitle = this.tr("Importing Study...");
1940+
const cardIcon = "@FontAwesome5Solid/cloud-upload-alt";
1941+
const importingStudyCard = this._addTaskCard(null, cardTitle, cardIcon);
19491942

19501943
const body = new FormData();
19511944
body.append("fileName", file);

0 commit comments

Comments
 (0)