Skip to content
This repository was archived by the owner on Dec 29, 2023. It is now read-only.

Commit 90a63ed

Browse files
committed
ENH: change visualizer button labels depending on context
1 parent f32f892 commit 90a63ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/js/components/pages/Job.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,14 @@ const Job = ({ plugin, action, inputs, metadata, submitJob, cancelJob, children
145145
className="btn btn-danger"
146146
onClick={cancelJob}
147147
>
148-
Cancel
148+
{children === null ? 'Cancel' : 'Exit'}
149149
</button>
150150
<button
151151
disabled={children && children.type.displayName === 'JobRunning'}
152152
className="btn btn-primary pull-right"
153153
type="submit"
154154
>
155-
Go!
155+
{children === null ? 'Go!' : 'Run again!'}
156156
</button>
157157
</form>
158158
<br />

app/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const makeURL = (port, secretKey) => {
6868

6969
const createWindow = () => {
7070
// Create the browser window.
71-
win = new BrowserWindow({ width: 1024, height: 800 });
71+
win = new BrowserWindow({ width: 1024, height: 800, x: 5, y: 5 });
7272

7373
startRestAPI((port, secret) => win.loadURL(makeURL(port, secret)));
7474

0 commit comments

Comments
 (0)