File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
components/file_system_interface Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import fs from 'fs-extra'
16
16
const { remote } = require (' electron' )
17
17
const Mousetrap = require (' mousetrap' )
18
18
19
+ // might not be optimal to import like this, since entire slackApiStuff object is imported while only one of its properties is used
19
20
import slackApiStuff from ' ../../../secretStuff/slackApiStuff.js'
20
21
const slackWebhookURL = slackApiStuff .slackWebhookURL
21
22
@@ -122,8 +123,10 @@ export default {
122
123
// still must refactor to dynamically work with user's Slack
123
124
notifySlack () {
124
125
remote .dialog .showMessageBox ({
126
+ title: ' Notify Slack?' ,
125
127
message: ' Save successful. Would you like to notify your team on Slack?' ,
126
- buttons: [' No' , ' Yes' ]
128
+ buttons: [' No' , ' Yes' ],
129
+ defaultId: 1
127
130
},
128
131
response => {
129
132
if (response === 1 ) {
Original file line number Diff line number Diff line change 1
1
2
2
const routes = [
3
+ {
4
+ path : '/start' ,
5
+ // redirect: 'https://slack.com/openid/connect/authorize?scope=openid%20profile&response_type=code&redirect_uri=https%3A%2F%2Flocalhost/slacklogin&client_id=2696943977700.2696948669268'
6
+ component : ( ) => import ( 'components/slack_login/SlackLoginWindow.vue' )
7
+ } ,
8
+ {
9
+ path : '/slacklogin' ,
10
+ // redirect: 'https://slack.com/openid/connect/authorize?scope=openid%20profile&response_type=code&redirect_uri=https%3A%2F%2Flocalhost/slacklogin&client_id=2696943977700.2696948669268'
11
+ redirect : '/pow'
12
+ } ,
3
13
{
4
14
path : '/' ,
5
15
component : ( ) => import ( 'layouts/MyLayout.vue' ) ,
You can’t perform that action at this time.
0 commit comments