org.onap migration
[vid.git] / vid-app-common / src / main / webapp / app / vid / scripts / view-models / serviceModels.htm
index 3cba871..17b87bf 100755 (executable)
@@ -69,8 +69,8 @@
                        <td att-table-body ng-bind="service['distributionStatus']"></td>\r
                        <td att-table-body ng-bind="service['lastUpdaterUserId']"></td>\r
                        <td att-table-body ng-bind="service['toscaModelUrl']"></td>\r
-                                       <td att-table-body ng-show="service['version'] > '1.0' "><button type=button ng-click="loadPreviousVersionData(service['invariantUUID'],service['name'],service['version'])" att-button btn-type="primary" size="small">Previous Versions</button></td>\r
-                       <td att-table-body ng-show="service['version'] <= '1.0' ">&nbsp;</td>\r
+                                       <td att-table-body ng-show="service.hasPreviousVersion"><button type=button ng-click="loadPreviousVersionData(service['invariantUUID'],service['name'],service['version'])" att-button btn-type="primary" size="small">Previous Versions</button></td>\r
+                       <td att-table-body ng-show="!service.hasPreviousVersion">&nbsp;</td>\r
                        </tr>     \r
                    </tbody>      \r
                </table>\r