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'
1616const { remote } = require (' electron' )
1717const Mousetrap = require (' mousetrap' )
1818
19+ // might not be optimal to import like this, since entire slackApiStuff object is imported while only one of its properties is used
1920import slackApiStuff from ' ../../../secretStuff/slackApiStuff.js'
2021const slackWebhookURL = slackApiStuff .slackWebhookURL
2122
@@ -122,8 +123,10 @@ export default {
122123 // still must refactor to dynamically work with user's Slack
123124 notifySlack () {
124125 remote .dialog .showMessageBox ({
126+ title: ' Notify Slack?' ,
125127 message: ' Save successful. Would you like to notify your team on Slack?' ,
126- buttons: [' No' , ' Yes' ]
128+ buttons: [' No' , ' Yes' ],
129+ defaultId: 1
127130 },
128131 response => {
129132 if (response === 1 ) {
Original file line number Diff line number Diff line change 11
22const 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+ } ,
313 {
414 path : '/' ,
515 component : ( ) => import ( 'layouts/MyLayout.vue' ) ,
You can’t perform that action at this time.
0 commit comments