Skip to content
Snippets Groups Projects
Commit 410cf85a authored by Remco Tukker's avatar Remco Tukker
Browse files

finishing touches for the survey

parent 0c9a6617
No related branches found
No related tags found
No related merge requests found
......@@ -2293,6 +2293,7 @@
"name": "name",
"title": "Service name",
"cellType": "text",
"width": "20%",
"visibleIf": "{row.offered} = ['yes']"
},
{
......@@ -2321,7 +2322,7 @@
{
"value": "home-vpn",
"text": "Remote access VPN server",
"customDescription": "Remote access and site-to-site VPN"
"customDescription": "Remote access VPN for end users (e.g. eduVPN) or site-to-site VPN with the possibility of encryption"
},
{
"value": "ipv6",
......@@ -2351,12 +2352,12 @@
{
"value": "user-monitoring",
"text": "Network troubleshooting",
"customDescription": "Enables users at connected institutions to monitor Internet services in real time"
"customDescription": "Providing a support service to identify, diagnose and resolve problems and issues within a computer network, using network monitoring system tools like Looking Glass."
},
{
"value": "network-monitoring",
"text": "Network monitoring",
"customDescription": "Network Information System that shows the current and past performance of the network"
"customDescription": "Network Monitoring systems is software/hardware tools that can track various aspects of a network and its operation. These systems can detect devices and other network elements that comprise or touch the network, as well as provide status updates."
},
{
"value": "open-lightpath-exchange",
......@@ -2370,8 +2371,8 @@
},
{
"value": "point-to-point-circuit-vpn",
"text": "Virtual circuit/VPN",
"customDescription": "Virtual point to point circuits or VPNs delivered as a service to users "
"text": "Virtual circuits/network VPNs",
"customDescription": "Virtual point to point circuits or VPNs to create virtual networks between geographically distinct sites"
},
{
"value": "quality-of-service",
......@@ -2403,6 +2404,7 @@
"name": "name",
"title": "Service name",
"cellType": "text",
"width": "20%",
"visibleIf": "{row.offered} = ['yes']"
},
{
......@@ -2473,6 +2475,7 @@
"name": "name",
"title": "Service name",
"cellType": "text",
"width": "20%",
"visibleIf": "{row.offered} = ['yes']"
},
{
......@@ -2563,6 +2566,7 @@
"name": "name",
"title": "Service name",
"cellType": "text",
"width": "20%",
"visibleIf": "{row.offered} = ['yes']"
},
{
......@@ -2623,6 +2627,7 @@
"name": "name",
"title": "Service name",
"cellType": "text",
"width": "20%",
"visibleIf": "{row.offered} = ['yes']"
},
{
......@@ -2713,6 +2718,7 @@
"name": "name",
"title": "Service name",
"cellType": "text",
"width": "20%",
"visibleIf": "{row.offered} = ['yes']"
},
{
......@@ -2778,6 +2784,7 @@
"name": "name",
"title": "Service name",
"cellType": "text",
"width": "20%",
"visibleIf": "{row.offered} = ['yes']"
},
{
......@@ -2873,6 +2880,7 @@
"name": "name",
"title": "Service name",
"cellType": "text",
"width": "20%",
"visibleIf": "{row.offered} = ['yes']"
},
{
......@@ -2906,7 +2914,7 @@
{
"value": "procurement",
"text": "Procurement/brokerage",
"customDescription": "Procurement services and framework agreements"
"customDescription": "Procurement services and framework agreements, e.g. for cloud services"
},
{
"value": "software-licenses",
......
......@@ -36,6 +36,15 @@ function hideCheckboxLabels(_, options) {
}
}
function fixTitleCss(_, options) {
// in various cases the css we supplied to surveyModel.css gets ignored, so we check for those cases
const selector = '[data-name="' + options.question.name + '"]';
const header = document.querySelector(selector)?.querySelector('h5');
if (header && !header.classList.contains('sv-header-flex')) {
options.question.updateElementCss(); // apparently this is the call that's missing sometimes
}
}
function setVerifyButton(question: Question, state: VerificationStatus, surveyModel) {
surveyModel.verificationStatus.set(question.name, state);
......@@ -99,6 +108,7 @@ function SurveyComponent({ surveyModel }) {
if (!surveyModel.onAfterRenderQuestion.hasFunc(alwaysSetVerify)) {
surveyModel.onAfterRenderQuestion.add(alwaysSetVerify);
surveyModel.onAfterRenderQuestion.add(fixTitleCss);
}
if (!surveyModel.onValueChanged.hasFunc(updateFromUnverified)) {
......@@ -111,7 +121,7 @@ function SurveyComponent({ surveyModel }) {
if (!surveyModel.onMatrixAfterCellRender.hasFunc(customDescriptionCallback)) {
// NB I would have preferred using onAfterRenderQuestion, but unfortunately that is
// not always triggered on re-renders (specifically when extra column become visble or invisible)
// not always triggered on re-renders (specifically when extra columns become visble or invisible)
surveyModel.onMatrixAfterCellRender.add(customDescriptionCallback);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment