Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Jul 15, 2021
1 parent 3d6d9e2 commit 27cc34a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 17 deletions.
4 changes: 2 additions & 2 deletions plantit/front_end/src/components/tasks/task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1063,8 +1063,8 @@
noPreview(
file
)
? 'min-width: 20rem;'
: 'max-width: 4rem;'
? 'min-width: 20rem;opacity:0.1'
: 'max-width: 4rem;opacity:0.1'
"
:src="
thumbnailPath(
Expand Down
47 changes: 33 additions & 14 deletions plantit/front_end/src/components/workflows/workflow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@
</b-col>
<b-col md="auto" class="mr-0 ml-0"
><small
>Stargazers:
<b>{{
><i class="fas fa-star fa-fw"></i>
{{
getWorkflow.repo
.stargazers_count
}}</b></small
}}</small
></b-col
>
<!--<b-col md="auto" class="mr-0 ml-0"
Expand Down Expand Up @@ -350,8 +350,10 @@
<template #title>
<b-button
id="about-workflow"
:variant="activeTab === 0 ? 'info' :
profile.darkMode
:variant="
activeTab === 0
? 'info'
: profile.darkMode
? 'outline-light'
: 'white'
"
Expand Down Expand Up @@ -1011,8 +1013,10 @@
:disabled="
workflowLoading
"
:variant="activeTab === 1 ? 'info' :
profile.darkMode
:variant="
activeTab === 1
? 'info'
: profile.darkMode
? 'outline-light'
: 'white'
"
Expand Down Expand Up @@ -1278,7 +1282,11 @@
</b>
</b-col>
</b-row>
<b-row v-if="personalProjects.length > 0"
<b-row
v-if="
personalProjects.length >
0
"
class="mt-2"
><b-col
cols="3"
Expand All @@ -1296,11 +1304,18 @@
></b-col
></b-row
>
<b-row v-else
<b-row
v-else
class="mt-2"
><b-col
cols="3"
><i>You haven't started any projects.</i></b-col
><i
>You
haven't
started
any
projects.</i
></b-col
></b-row
>
<b-row
Expand Down Expand Up @@ -3049,11 +3064,15 @@
label="Loading..."
variant="dark"
class="mr-2 mb-1"
></b-spinner><i v-else
></b-spinner
><i
v-else
class="fas fa-chevron-right fa-fw mr-1"
></i>
Start</b-button></b-col
></b-row>
Start</b-button
></b-col
></b-row
>
</b-tab>
<!--<b-tab
title="Runs"
Expand Down Expand Up @@ -3929,7 +3948,7 @@ export default {
time: {
limit: this.timeLimit,
units: this.timeLimitUnits
},
}
// iterations: this.iterations
};
if ('jobqueue' in this.getWorkflow.config)
Expand Down
2 changes: 1 addition & 1 deletion plantit/plantit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ def parse_task_cli_options(task: Task) -> (List[str], PlantITCLIOptions):
if 'project' in jobqueue:
if not isinstance(jobqueue['project'], str):
errors.append('Section \'jobqueue\'.\'project\' must be a str')
else:
elif task.agent.project is not None and task.agent.project != '':
jobqueue['project'] = task.agent.project
if 'walltime' in jobqueue:
if not isinstance(jobqueue['walltime'], str):
Expand Down

0 comments on commit 27cc34a

Please sign in to comment.