File tree 1 file changed +20
-12
lines changed
1 file changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -134,21 +134,29 @@ export const ansibleRepositorySyncAction = Action({
134
134
return t `Sync task is already queued.` ;
135
135
}
136
136
137
- // only available on detail screen; list will have remote: string, so no .url
138
- if (
139
- remote &&
140
- remote . url === 'https://galaxy.ansible.com/api/' &&
141
- ! remote . requirements_file
142
- ) {
137
+ // Remote checks only available on detail screen; list will have remote: string, so no .url
138
+ if ( remote && remote . url === 'https://galaxy.ansible.com/api/' ) {
143
139
const name = remote . name ;
144
140
const url = formatPath ( Paths . ansibleRemoteEdit , { name } ) ;
145
141
146
- return (
147
- < Trans >
148
- YAML requirements are required to sync from Galaxy - you can{ ' ' }
149
- < Link to = { url } > edit the { name } remote</ Link > to add requirements.
150
- </ Trans >
151
- ) ;
142
+ if ( ! remote . requirements_file ) {
143
+ return (
144
+ < Trans >
145
+ YAML requirements are required to sync from Galaxy. You can{ ' ' }
146
+ < Link to = { url } > edit the { name } remote</ Link > to add requirements.
147
+ </ Trans >
148
+ ) ;
149
+ }
150
+
151
+ if ( remote . signed_only ) {
152
+ return (
153
+ < Trans >
154
+ Community content will never be synced if the remote is set to only
155
+ sync signed content. You can{ ' ' }
156
+ < Link to = { url } > edit the { name } remote</ Link > to change it.
157
+ </ Trans >
158
+ ) ;
159
+ }
152
160
}
153
161
154
162
return null ;
You can’t perform that action at this time.
0 commit comments