-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Project request modal with user messaging tab to the institution…
…al dashboard
- Loading branch information
John Tordoff
committed
Dec 18, 2024
1 parent
f41bc9a
commit 5a7fe94
Showing
11 changed files
with
436 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// app/adapters/user-message.js | ||
import { inject as service } from '@ember/service'; | ||
import config from 'ember-osf-web/config/environment'; | ||
const { OSF: { apiUrl } } = config; | ||
import OsfAdapter from './osf-adapter'; | ||
|
||
export default class NodeRequestAdapter extends OsfAdapter { | ||
@service session; | ||
|
||
urlForCreateRecord(modelName, snapshot) { | ||
const nodeId = snapshot.record.target; | ||
return `${apiUrl}/v2/nodes/${nodeId}/request/`; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// app/adapters/user-message.js | ||
import { inject as service } from '@ember/service'; | ||
import config from 'ember-osf-web/config/environment'; | ||
const { OSF: { apiUrl } } = config; | ||
import OsfAdapter from './osf-adapter'; | ||
|
||
export default class UserMessageAdapter extends OsfAdapter { | ||
@service session; | ||
urlForCreateRecord(modelName, snapshot) { | ||
const userId = snapshot.record.user; | ||
return `${apiUrl}/v2/users/${userId}/messages/`; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
app/institutions/dashboard/-components/object-list/contributors-field/styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
.icon-message { | ||
opacity: 0; | ||
color: $color-text-blue-dark; | ||
background-color: inherit !important; | ||
border: 0 !important; | ||
box-shadow: 0 !important; | ||
} | ||
|
||
.icon-message:hover { | ||
opacity: 1; | ||
background-color: inherit !important; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.